﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ninject;
using Meraz.Core.Repositories;
using Meraz.Core.Model;
using Meraz.Core.Commands;

namespace Meraz.Core.Managers
{
    public class TopicManager
    {
        [Inject]
        public ITopicRepository TopicRepository {get;set;}

        [Inject]
        public ICreateTopicsCommand CreateTopicsCommand { get; set; }

        public Topic Get(string topicName)
        {
            return CreateTopicsCommand.Execute(topicName);
        }
        public IDictionary<string, Topic> Get(IEnumerable<string> topicNames)
        {
            return CreateTopicsCommand.Execute(topicNames);
        }
    }
}
